import { createSlice } from '@reduxjs/toolkit'



export const cityListSlice = createSlice({
    name: 'cityList',
    initialState: {
        cityList: [
            {
                id: 1,
                name: '张三',
                code: "410881199806075201"
            },
            {
                id: 2,
                name: '王五',
                code: "410881199806075201"
            },
        ]
    },
    reducers: {
        geSc(state,action){
         state.cityList=state.cityList.filter((v)=>v.id !==action.cityList)
        }
    },
})


export const {geSc } = cityListSlice.actions

